package mdm.com.web.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import mdm.com.web.entity.RolePermission;


@Repository
public interface RolePermissionMapper {
    int deleteByPrimaryKey(Integer cRolePermissionId);

    int insert(RolePermission record);

    int insertSelective(RolePermission record);

    RolePermission selectByPrimaryKey(Integer cRolePermissionId);

    int updateByPrimaryKeySelective(RolePermission record);

    int updateByPrimaryKey(RolePermission record);

    void deleteBycRoleId(Integer cRoleId);

    List<RolePermission> selectPermissionByRoleName(String cRoleName);

    // jlq-add-2018-3-12
    List<RolePermission> selectByRoleId(Integer cRoleId);
    
    List<RolePermission> groupByPermissionId(Integer cRoleId);

}